    <div class="menu">
      <ul>
        <li><?php echo $html->link(__("Hompage", true), 
        			array('controller'=>'pages','action'=>'index'),
        			array('class'=>(($this->params['controller']=='pages' || $this->params['controller']=='users' )?'active':'off'))); ?></li>

<?php if(!$session->check("Auth.User.id")){?>       
        <li><?php echo $html->link(__("Register", true), 
        			array('controller'=>'customers','action'=>'register'),
        			array('class'=>(($this->params['controller']=='customers')?'active':'off'))); ?></li>  
<?php }?>  
     			    
<?php if($session->read('Auth.User.group') == 'emplo'){?>
       <li><?php echo $html->link(__("Employee", true), 
        			array('controller'=>'employees','action'=>'employee'),
        			array('class'=>(($this->params['controller']=='employees')?'active':'off'))); ?></li>
		<li><?php echo $html->link(__("Reports", true), 
        			array('controller'=>'reports','action'=>'index'),
        			array('class'=>(($this->params['controller']=='reports')?'active':'off'))); ?></li> 
        			
<?php }elseif($session->read('Auth.User.group') == 'firms'){?>
       <li><?php echo $html->link(__("Customer", true), 
        			array('controller'=>'customers','action'=>'customer'),
        			array('class'=>(($this->params['controller']=='customers')?'active':'off'))); ?></li>

        			        			
		<li><?php echo $html->link(__("Add New Order", true), 
        			array('controller'=>'messages','action'=>'add'),
        			array('class'=>(($this->params['controller']=='message')?'active':'off'))); ?></li> 
        			
<?php }elseif($session->read('Auth.User.group') == 'admin' || $session->read('Auth.User.group') == 'manag'){?>
        <li><?php echo $html->link(__("Customers", true), 
        			array('controller'=>'customers','action'=>'index'),
        			array('class'=>(($this->params['action']=='agent')?'active':'off'))); ?></li>
        <li><?php echo $html->link(__("Employees", true), 
        			array('controller'=>'employees','action'=>'index'),
        			array('class'=>(($this->params['controller']=='manager')?'active':'off'))); ?></li>
        <li><?php echo $html->link(__("Orders", true), 
        			array('controller'=>'orders','action'=>'index'),
        			array('class'=>(($this->params['action']=='contact')?'active':'off'))); ?></li>
		<li><?php echo $html->link(__("Reports", true), 
        			array('controller'=>'reports','action'=>'index'),
        			array('class'=>(($this->params['controller']=='reports')?'active':'off'))); ?></li> 
        <li><?php echo $html->link(__("Billings", true), 
        			array('controller'=>'orders_billings','action'=>'index'),
        			array('class'=>(($this->params['controller']=='orders_billings')?'active':'off'))); ?></li> 
		<li><?php echo $html->link(__("Setup", true), 
        			array('controller'=>'setup','action'=>'index'),
        			array('class'=>(($this->params['controller']=='setup')?'active':'off'))); ?></li>         			

<?php }?>

<?php if($session->check("Auth.User.id")){?>       
        <li><?php echo $html->link(__("Mesages", true), 
        			array('controller'=>'messages','action'=>'index'),
        			array('class'=>(($this->params['controller']=='messages')?'active':'off'))); ?></li>  
<?php }?>  

       </ul>
    </div>